<?php
namespace app\api\model;
use think\Model;
class Address extends Model
{
    protected $name = 'address';
	protected $type = [ 'create_time' => 'timestamp:Y-m-d H:i', ];
    // 开启自动写入时间戳 
    protected $autoWriteTimestamp = true; 
    public function user() 
    { 
    	return $this->belongsTo('User');
    }
}
